package app_model

import (
	"hft/Database/admin"
	join_db "hft/Database/admin/join"
)

// 今日资讯
type TodayNews struct {
	ID         uint   `json:"id"`
	Title      string `json:"name"`
	Cover      string `json:"cover"`
	CreateTime string `json:"create_time"`
	Author     string `json:"author"`
}

// 表情
type Emoji struct {
	Emoji    string `json:"emoji"`
	TextShow string `json:"text_show"`
}

// 首页
type Index struct {
	News            []*TodayNews `json:"news"`
	RecommendLouPan []*LouPan    `json:"recommend_lou_pan"`
	NewLouPan       []*LouPan    `json:"new_lou_pan"`
	Emoji           []*Emoji     `json:"emoji"`
}

// 换取sid
type TransSID struct {
	Sid  int    `json:"sid"`
	Name string `json:"name"`
}

// 获取身份城市
type ProvinceCityBody struct {
	Name      string              `json:"name"`
	ID        uint                `json:"id"`
	FirstWord string              `json:"first_word"`
	Level     string              `json:"level"`
	Children  []*ProvinceCityBody `json:"children,omitempty"`
}

type JoinConfig struct {
	RegionList []*ProvinceCityBody `json:"region_list"`
	Phone      string              `json:"phone"`
}

type JoinUsBody struct {
	join_db.Join
	Code string `json:"code"`
}

type GetAssistAndPrivateBody struct {
	Assist  *admin.SmallCategory `json:"assist"`
	Private *admin.SmallCategory `json:"private"`
}
